<template>
    <el-container>
        <el-aside>
            <NavBar></NavBar>
        </el-aside>
        <el-container>
            <el-header style="height: 30px;" class="bg-sky-500">
                <span class="leading-7 text-white text-xs absolute right-5 hover:cursor-pointer" @click="out">退出登录</span>
            </el-header>
            <div>
                <router-view></router-view>
            </div>
        </el-container>
    </el-container>
</template>

<script type="text/javascript">
import NavBar from "../../components/admin/NavBar.vue"
export default {
    data() {
        return {

        }
    },
    components: {
        NavBar,
    },
    methods: {
        out() {
            localStorage.removeItem( 'adminToken' )
            this.$router.push( '/admin/login' )
        },
    },
}
</script>

<style scoped></style>